using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace SeeqSharp
{
    public class SeeqpodMetadata
    {
        private string mp3UrlId = "";
        private bool hasMusicRex = false;
        private string songId = "";
        private string cacheLocation = "";

        public SeeqpodMetadata()
        {
        }

        [XmlElement(ElementName = "mp3_url_id")]
        public string Mp3UrlId
        {
            get { return (this.mp3UrlId); }
            set { this.mp3UrlId = value; }
        }

        [XmlElement(ElementName = "has_music_rex")]
        public string HasMusicRexAsString
        {
            get { return (this.hasMusicRex.ToString()); }
            set { this.hasMusicRex = bool.Parse(value); }
        }

        [XmlIgnore]
        public bool HasMusicRex
        {
            get { return (this.hasMusicRex); }
            set { this.hasMusicRex = value; }
        }

        [XmlElement(ElementName = "song_id")]
        public string SongId
        {
            get { return (this.songId); }
            set { this.songId = value; }
        }

        [XmlElement(ElementName = "cache_location")]
        public string CacheLocation
        {
            get { return (this.cacheLocation); }
            set { this.cacheLocation = value; }
        }
    }
}
